package com.phone.client.poji.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("tb_integration_history")
@ApiModel(value="积分记录的实体", description="积分记录表")
public class TbIntegrationHistory {

  @ApiModelProperty(value = "id")
  @TableId(value = "id",type = IdType.AUTO)
  private Integer id;

  @ApiModelProperty(value = "会员ID")
//  @TableId(value = "id",type = IdType.AUTO)
  private Integer memberId;

  @ApiModelProperty(value = "创建记录时间")
  private String createTime;

  @ApiModelProperty(value = "积分变化类型1加2减")
  private Integer changeType;

  @ApiModelProperty(value = "积分改变数量")
  private Integer changeCount;

  @ApiModelProperty(value = "操作人员")
  private String operateMan;

  @ApiModelProperty(value = "操作备注")
  private String operateNote;

  @ApiModelProperty(value = "积分来源:0->自驾服务消费金额;1->参与官方活动;")
  private Integer sourceType;

  @TableField(exist = false)  //表示数据库中不存在该字段
  @ApiModelProperty(value = "会员信息")
  private TbClient tbClient;

}
